﻿#ifndef CONFIGFILE_H
#define CONFIGFILE_H

#include <QObject>
#include <QSettings>

class ConfigFile : public QObject
{
    Q_OBJECT
public:
    explicit ConfigFile(QObject *parent = nullptr);
    virtual ~ConfigFile();

    static ConfigFile * gestance();
    //协议转化接口
    QString getCom1Name();
    //设备发送指令
    QString getCom2Name();
    //设备接受指令
    QString getCom3Name();
    //吹气泵指令
    QString getCom4Name();

    //设备信号
    QString getDevices();

    //SN
    QString getSns();

    //软件版本
    QString getVersions();



signals:


private:
    QSettings * m_settings;
    QSettings * m_settingVersions;
    static ConfigFile  * m_configFile;
    QString m_docParhFile2;

};

#endif // CONFIGFILE_H
